package android_design_mode.chapter11_commond.tetris;

public class Player {


    public static void main(String[] args) {

        TetrisMachine tetrisMachine = new TetrisMachine();

        LeftCommond leftCommond = new LeftCommond(tetrisMachine);
        RightCommond rightCommond = new RightCommond(tetrisMachine);
        FallCommond fallCommond = new FallCommond(tetrisMachine);
        TransformCommond transformCommond = new TransformCommond(tetrisMachine);

        Buttons buttons = new Buttons();
        buttons.setFallCommond(fallCommond);
        buttons.setLeftCommond(leftCommond);
        buttons.setRightCommond(rightCommond);
        buttons.setTransformCommond(transformCommond);

        buttons.fall();
        buttons.toLeft();
        buttons.toRight();
        buttons.transform();

    }
}
